package com.wdcloud.framework_business.mvp;

/**
 * Info:
 * Created by Umbrella.
 * CreateTime: 2021/3/4 16:03
 */
public abstract class BasePresenter<V extends IBaseView> implements IBasePresenter<V>{
    protected V mView;
    @Override
    public void attachView(V view) {
        mView=view;
    }

    @Override
    public void detachView() {
        mView=null;
    }

    @Override
    public boolean isViewAttached() {
        return mView != null;
    }
    public V getView(){
        return mView;
    }
}